package com.example.mq.mqserver.core;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 言初
 * Date: 2024-09-03
 * Time: 15:17
 */
/*
 表示交换机类型的枚举类

 */
public enum ExchangeType {
    // 交换机的三种类型
    DIRECT(0),
    FANOUT(1),
    TOPIC(2);

    private final int type;

    private ExchangeType(int type){
        this.type = type;
    }

    public int getType() {
        return type;
    }
}
